package com.aaa.advice;

import com.aaa.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalAdvice {


    @ExceptionHandler(Exception.class)
    public Result aaa(){
        return new Result(300,"后台出错了",null);
    }
}
